{% extends "base.html" %}

{% block user_menu %}
{{ block.super }}
{% if user_info.user and user_info.admin and not user_info.banned %}
    <div class="user-menu-panel">
    <div class="user-menu-command"><a href="/admin/user/banned">Banned users</a></div>
    <div class="user-menu-command"><a href="/comment/all">All comments</a></div>
    <div class="user-menu-command"><a href="/config">Configuration</a></div>
    <div class="user-menu-command"><a href="/cube/profiles">Cube profiles</a></div>    
    </div>
{% endif %}
{% endblock user_menu %}




{% block content %}  
{% if not user_info.banned %}
<div class="all-commands">
<a href="{{ user_info.url_add_post }}"><img src="/template/add-post.png" border="0"></a>
</div>
{% endif %}

{% if not user_info.user %}
<div>
  You must be logged in to create posts.
</div>
{% endif %}

{% include "part-posts.html" %}
  

{% endblock content %}